package com.pipayshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pipayshop.domain.ShopCart;
import com.pipayshop.domain.vo.ShopCartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xiaoqiu
 * @date 2024/9/19 14:57
 * @description
 */
@Mapper
public interface OnlineStoreShopCartMapper extends BaseMapper<ShopCart> {

    List<ShopCartVo> selectShopCartByIds(String userId);


    int selectByUserIdAndCommodityId(@Param("userId") String userId,@Param("commodityId") String commodityId,@Param("skuId") Integer skuId);

    void updateshopCart(ShopCart shopCart);

    void insertCart(ShopCart shopCart);
}
